package com.dsg.service.bank;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dsg.entity.bank.DsgBankRecord;
import com.dsg.service.apply.IDsglService;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 銀行往來過數檔案 服务类
 * </p>
 *
 * @author system
 * @since 2020-07-12
 */
public interface IDsgBankRecordService extends IService<DsgBankRecord>, IDsglService<DsgBankRecord> {

    /**
     * 批量刪除數據
     *
     * @param idList
     */
    void batchDelete(String idList);

    /**
     * 下載BEA
     *
     * @param response
     * @param dsgBankRecord
     * @throws Exception
     */
    void downloadBea(HttpServletResponse response, DsgBankRecord dsgBankRecord) throws Exception;

    /**
     * 查询匯總分組列表（分頁）
     *
     * @param page
     * @param dsgBankRecord
     * @return
     */
    Page<DsgBankRecord> selectByGroupList(Page<DsgBankRecord> page, DsgBankRecord dsgBankRecord);
}
